{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">提现记录</a></li>
</ul>
<div class="app-content">
<div class="app-table-list">
<div class="panel panel-default">
	<div class="table-responsive">
		<table class="table table-hover" style="min-width: 300px;">
			<thead class="navbar-inner">
				<tr>
					<th class="col-sm-3">申请信息</th>
					<th class="col-sm-2">申请金额</th>
					<th class="col-sm-2">系统提成</th>
					<th class="col-sm-3">提现</th>
					<th class="col-sm-3">申请时间</th>
					<th class="col-sm-3">操作时间</th>
					<th class="col-sm-3">状态</th>
					<th class="col-sm-5 text-center">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list  $merchant}
				<tr>
					<td>{if $merchant['type']==1}商家：{$merchant['sName']}{else}代理：{$merchant['aName']}{/if}</td>
					<td>{$merchant['sapplymoney']}元</td>
					<td>{$merchant['spercent']}%</td>
					<td>{if $merchant['type']==1}<label class="label label-default label-danger">商家提现</label>{/if}
						{if $merchant['type']==2}<label class="label label-default label-danger">代理提现</label>{/if}
						<br><br>{if $merchant['settletype']==1}<label class="label label-default label-success">手动处理{elseif $merchant['settletype']==2}<label class="label label-default label-info">微信零钱{else}<label class="label label-default">未结算{/if}</label>
					</td>
					<td>{php echo date('Y-m-d',$merchant['applytime'])}<br>{php echo date('H:i:s',$merchant['applytime'])}</td>
					<td>{php echo date('Y-m-d',$merchant['updatetime'])}<br>{php echo date('H:i:s',$merchant['updatetime'])}</td>
					<td>{if $merchant['status']==1}
						<label class="label label-default label-default">代理审核中</label>
						{elseif $merchant['status']==2}
						<label class="label label-default label-info">系统审核中</label>
						{elseif $merchant['status']==3}
						<label class="label label-default label-warning">系统审核通过，待结算</label>
						{elseif $merchant['status']==4}
						<label class="label label-default label-success">已结算给代理</label>
						{elseif $merchant['status']==5}
						<label class="label label-default label-success">已结算到商家</label>
						{elseif $merchant['status']== -1}
						<label class="label label-default label-danger">系统驳回申请</label>
						{elseif $merchant['status']== -2}
						<label class="label label-default label-danger">代理驳回申请</label>
						{/if}
					<td style="text-align: center;">
						{if $merchant['status']==1}
                	 	<a href="{php echo web_url('finace/finaceWithdrawalApply/cashApply', array( 'id'=>$merchant['id'],'type'=>'submit'));}" title="审核通过" class="btn btn-default btn-sm" onclick="return confirm('警告：此操作不可逆，确认审核通过？');return false;">审核通过</a>
                	 	<a href="{php echo web_url('finace/finaceWithdrawalApply/cashApply', array( 'id'=>$merchant['id'],'type'=>'reject'));}" title="申请驳回" class="btn btn-danger btn-sm" onclick="return confirm('警告：此操作不可逆，确认驳回提现申请？');return false;">申请驳回</a>
						{/if}
						{if $merchant['status']==4}
						-
                	 	<a   href="{php echo web_url('finace/wlCash/settlement', array( 'id'=>$merchant['id'],'type'=>'settlement'));}" title="去结算" class="btn btn-default btn-sm" >去结算</a> 
						{/if}
					</td>
				</tr>
				{/loop}
			</tbody>
		</table>
		{$pager}
		{if empty($list)}
		    <div class="panel-body" style="text-align: center;padding:30px;">
		        暂时没有任何数据!
		    </div>
		{/if}
	</div>
</div>
</div>
</div>
{php include wl_template('common/footer');}